﻿using System;
using System.Collections.Generic;

namespace Rj.PersonnelVerification.Server.DataBaseContext.Entities
{
    /// <summary>
    /// 病历模板表
    /// </summary>
    public partial class EmrTbRecTemp
    {
        /// <summary>
        /// 病历模板ID(EMR_Key_Maintain)
        /// </summary>
        public int TempId { get; set; }
        /// <summary>
        /// 病历模板代码(唯一)
        /// </summary>
        public string? TempCode { get; set; }
        /// <summary>
        /// 病历模板名称
        /// </summary>
        public string? TempName { get; set; }
        /// <summary>
        /// 病历类型Id(EMR_Tb_RecType)
        /// </summary>
        public int? RecType { get; set; }
        /// <summary>
        /// 版本号
        /// </summary>
        public string? Version { get; set; }
        /// <summary>
        /// 来源模板Id
        /// </summary>
        public int? FromTempId { get; set; }
        /// <summary>
        /// 部门范围
        /// 1 门(急)诊
        /// 2 住院
        /// </summary>
        public int? UseDept { get; set; }
        /// <summary>
        /// 提示语
        /// </summary>
        public string? Tip { get; set; }
        /// <summary>
        /// 备注说明
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 使用范围
        /// 0 全院
        /// 1 科室
        /// 2 个人
        /// </summary>
        public int? UseRange { get; set; }
        /// <summary>
        /// 科室列表
        /// </summary>
        public string? DeptIds { get; set; }
        /// <summary>
        /// 分享对象Id
        /// </summary>
        public string? ShareWorkerIds { get; set; }
        /// <summary>
        /// 是否基础模板
        /// </summary>
        public bool? BasicTempFlag { get; set; }
        /// <summary>
        /// 是否唯一
        /// </summary>
        public bool? UniqueFlag { get; set; }
        /// <summary>
        /// 病种相关(逗号拼接病种代码)
        /// </summary>
        public string? DiseaseRel { get; set; }
        /// <summary>
        /// 是否可打印
        /// </summary>
        public bool? PrintFlag { get; set; }
        /// <summary>
        /// 是否可续打
        /// </summary>
        public bool? ConPrintFlag { get; set; }
        /// <summary>
        /// 打印模板ID
        /// </summary>
        public int? PrintTempId { get; set; }
        /// <summary>
        /// 性别限制
        /// 0 通用
        /// 1 男
        /// 2 女
        /// </summary>
        public int? SexLimit { get; set; }
        /// <summary>
        /// 最小年龄
        /// </summary>
        public int? MinAge { get; set; }
        /// <summary>
        /// 最大年龄
        /// </summary>
        public int? MaxAge { get; set; }
        /// <summary>
        /// 启用标识
        /// 0 停用
        /// 1 启用
        /// </summary>
        public int? EnableFlag { get; set; }
        /// <summary>
        /// 是否文件夹
        /// </summary>
        public bool? FolderFlag { get; set; }
        /// <summary>
        /// 父节点ID
        /// </summary>
        public int? ParentId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public int? CreatorId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public int? UpdatorId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }
        /// <summary>
        /// 删除标记
        /// 0否
        /// 1是
        /// </summary>
        public int? DelFlag { get; set; }
        /// <summary>
        /// 医院编码
        /// </summary>
        public int? HospitalId { get; set; }
        public int? DocType { get; set; }
        public bool? EdPrintFlag { get; set; }
        public int? SortNo { get; set; }
        public int? UseHosp { get; set; }
        public int? TemplateFlag { get; set; }
    }
}
